package dimensional.traveler.client.entrypoint;

import com.google.gwt.core.client.EntryPoint;

import dimensional.traveler.client.Mediator;
import dimensional.traveler.client.UserManagement;

public class ModuleEntryPoint implements EntryPoint {

	@Override
	public void onModuleLoad() {
		Mediator mediator = new Mediator();
		if (UserManagement.isUserLoggedIn()) {
			mediator.displayWelcomeScreen();
//			userProxy = new UserProxy(UserManagement.getLoggedInUser());
//			userProxy.setMediator(Mediator.this);
//			displayWelcomeScreen();
		} else {
			mediator.displayLoginScreen();
		}
	}

}
